const router = require("koa-router")();
const controllerAddress = require("../controllers/address");

router.prefix('/v1')

router.get('/address', controllerAddress.getAddress)
router.get('/address/:id', controllerAddress.getAddressByID)
router.put('/address', controllerAddress.addAddress)
router.delete('/address/:id', controllerAddress.delAddress)
router.post('/address', controllerAddress.editAddress)

module.exports = router;
